package models

type Category struct {
	ID
	Name  string `json:"name" gorm:"not null;comment:分类名称"`
	Icon  string `json:"icon" gorm:"not null;comment:分类图标"`
	Image string `json:"image" gorm:"not null;comment:分类图片"`
	Desc  string `json:"desc" gorm:"type:text;comment:分类描述"`
	//排序
	Sort int `json:"sort" gorm:"not null;comment:排序"`
	//状态
	Status int `json:"status" gorm:"not null;comment:状态"`

	Timestamps
	SoftDeletes
}

// func (category Category) GetUid() string {
// 	return strconv.Itoa(int(user.ID.ID))
// }
